package com.sage.dao.model;

import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

@Entity
@Table(name="i_company")
//@Cache(usage = CacheConcurrencyStrategy.READ_ONLY)
public class Company extends BeseEntity{
	
	private String name;
	
	@Column(name="pn_key")
	private String pnKey;
	
	private String descript;
	
	@Column(name="erp_name")
	private String erpName;
	
	private String logo;
	
	@ManyToOne(cascade=CascadeType.REFRESH)
	@JoinColumn(name="industry")
	private Industry industry;
	
	@ManyToOne(cascade=CascadeType.REFRESH)
	@JoinColumn(name="server")
	private Server server;
	
	
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getPnKey() {
		return pnKey;
	}

	public void setPnKey(String pnKey) {
		this.pnKey = pnKey;
	}

	public String getDescript() {
		return descript;
	}

	public void setDescript(String descript) {
		this.descript = descript;
	}

	public String getErpName() {
		return erpName;
	}

	public void setErpName(String erpName) {
		this.erpName = erpName;
	}

	public String getLogo() {
		return logo;
	}

	public void setLogo(String logo) {
		this.logo = logo;
	}

	public Industry getIndustry() {
		return industry;
	}

	public void setIndustry(Industry industry) {
		this.industry = industry;
	}

	public Server getServer() {
		return server;
	}

	public void setServer(Server server) {
		this.server = server;
	}
}
